package com.example.leetcode.graph;

import com.example.leetcode.graph.common.GraphUtils;

class Solution6464 {
    public boolean canTraverseAllPairs(int[] nums) {
//        return GraphUtils.canTraverseAllPairs(nums);
//        return GraphUtils.canTraverseAllPairs1(nums);
        return GraphUtils.canTraverseAllPairs2(nums);
    }
}


public class leetcode6464 {
    public static void main(String[] args) {
        Solution6464 solution6464 = new Solution6464();
        int[] nums = {2, 3, 6};
        int[] nums1 = {3, 9, 5};
        int[] nums2 = {4, 3, 12, 8};
        System.out.println(solution6464.canTraverseAllPairs(nums));
        System.out.println(solution6464.canTraverseAllPairs(nums1));
        System.out.println(solution6464.canTraverseAllPairs(nums2));
    }
}
